<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>淘宝焦点图</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    .tb-slider {
      position: relative;
      margin: 100px auto;
      width: 520px;
      height: 280px;
      background-color: #ccc;
    }

    .tb-slider img {
      width: 100%;
      height: 100%;
    }

    .tb-slider .prev,
    .tb-slider .next {
      position: absolute;
      top: 50%;
      margin-top: -15px;
      width: 20px;
      height: 30px;
      background-color: rgba(0, 0, 0, 0.3);
      text-align: center;
      line-height: 30px;
      color: #fff;
      text-decoration: none;
      border-radius: 0 15px 15px 0;
    }

    .tb-slider .prev {
      left: 0;
    }

    .tb-slider .next {
      right: 0;
      border-radius: 15px 0 0 15px;
    }

    .tb-slider .indicator {
      position: absolute;
      bottom: 15px;
      left: 50%;
      margin-left: -35px;
      width: 70px;
      height: 13px;
      background-color: rgba(255, 255, 255, 0.3);
      border-radius: 7px;
    }

    .tb-slider .indicator li {
      float: left;
      width: 8px;
      height: 8px;
      margin: 3px;
      list-style: none;
      background-color: #fff;
      border-radius: 50%;
    }

    .tb-slider .indicator .active {
      background-color: #ff5000;
    }
  </style>
</head>

<body>
  <div class="tb-slider">
    <img src="./images/tb.jpg" alt="焦点图">
    <a href="#" class="prev">&lt;</a>
    <a href="#" class="next">&gt;</a>
    <ul class="indicator">
      <li></li>
      <li></li>
      <li class="active"></li>
      <li></li>
      <li></li>
    </ul>
  </div>
</body>

</html>